package com.kgcx.common.client.coupon;

import com.kgcx.common.client.coupon.pojo.Billing;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "billing")
public interface BillingClient {
    @GetMapping("billing/getBilling")
    Billing getBilling(@RequestParam("kid") Integer kid);

    @GetMapping("billing/sel")
    List<Billing> sel();

    @PostMapping("billing/insBilling")
    Billing insBilling(@RequestParam("billing") Billing billing);

    @PostMapping("billing/updateBilling")
    Billing updateBilling(@RequestParam("billing") Billing billing);

    @PostMapping("billing/delBilling")
    Billing delBilling(@RequestParam("kid") Integer kid);
}
